package cn.test;

/**
 * @ClassName Lighter
 * @Description TODO
 * @Author 郑万富
 * @Date 2020/11/9 10:35
 * @Version 1.0
 */

public class Lighter {
    //true means green
    private boolean status;
    public void turnGreen(){
        this.status = true;
    }
    public void turnRed(){
        this.status = false;
    }

    public Lighter(boolean status) {
        this.status = status;
    }
    //默认为红灯
    public Lighter() {
        this.status = false;
    }
}
